import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import {
	createUnistorage
} from '@/uni_modules/pinia-plugin-unistorage'
import plugins from '@/utils/plugins.js'
import * as Pinia from 'pinia';
import 'leaflet/dist/leaflet.css'
// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	const store = Pinia.createPinia()
	store.use(createUnistorage())
	app.use(uviewPlus).use(store).use(plugins)
	return {
		app,
		Pinia
	}
}
// #endif